<!DOCTYPE HTML>
<html lang="zh-CN">

<head><meta name="generator" content="Hexo 3.9.0">
    <!--Setting-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="apple-mobile-web-app-capable" content="ydong博客">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,adress=no">
    <meta name="browsermode" content="application">
    <meta name="screen-orientation" content="portrait">
    <meta name="theme-version" content="1.2.3">
    <meta name="root" content="/blog/">
    <link rel="dns-prefetch" href="http://ydongabc.gitee.io/blog">
    <!--SEO-->

<meta name="keywords" content="接口,Mock.js">


<meta name="description" content="安装使用npm安装：$ npm install mockjs或直接script标签引入：&lt;script src=&quot;http://mockjs.com/dist/mock.js&q...">


<meta name="robots" content="all">
<meta name="google" content="all">
<meta name="googlebot" content="all">
<meta name="verify" content="all">
    <!--Title-->

<title>
    
    利用Mock.js模拟数据接口 |
    
    ydong博客
</title>

<link rel="alternate" href="/atom.xml" title="ydong博客" type="application/atom+xml">


<link rel="icon" href="./favicon.ico">

    

<link rel="stylesheet" href="/blog/css/bootstrap.min.css?rev=3.3.7">
<link rel="stylesheet" href="/blog/css/font-awesome.min.css?rev=4.7.0">
<link rel="stylesheet" href="/blog/css/style.css?rev=@@hash">
    
<div class="hide">
    <script type="text/javascript">
    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cspan class='cnzz_stat_icon_1263868967 hide' %3E%3Cscript%20src%3D%22https%3A%2F%2Fs95.cnzz.com%2Fz_stat.php%3Fweb_id%3D1272564536%22%3E%3C%2Fscript%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1263868967%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));
    </script>
</div>




    

</head></html>
<!--[if lte IE 8]>
<style>
    html{ font-size: 1em }
</style>
<![endif]-->
<!--[if lte IE 9]>
<div style="ie">你使用的浏览器版本过低，为了你更好的阅读体验，请更新浏览器的版本或者使用其他现代浏览器，比如Chrome、Firefox、Safari等。</div>
<![endif]-->
<body>
    <header class="main-header"  style="background-image:url(
    /blog/./img/banner.jpg)"
     >
    <div class="main-header-box">
        <a class="header-avatar" href="/" title='John Doe'>
            <img src="/blog/img/avatar.jpg" alt="logo头像" class="img-responsive center-block">
        </a>
        <div class="branding">
            <!--<h2 class="text-hide">Snippet主题,从未如此简单有趣</h2>-->
            
            <img src="/blog/img/branding.png" alt="Snippet 博客主题" class="img-responsive center-block">
            
        </div>
    </div>
</header>
    <nav class="main-navigation">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="navbar-header"><span class="nav-toggle-button collapsed pull-right" data-toggle="collapse" data-target="#main-menu" id="mnav">
                        <span class="sr-only"></span>
                        <i class="fa fa-bars"></i>
                    </span>
                    <a class="navbar-brand" href="http://ydongabc.gitee.io/blog">
                        ydong博客</a>
                </div>
                <div class="collapse navbar-collapse" id="main-menu">
                    <ul class="menu">
                        
                        <li role="presentation" class="text-center">
                            <a href="/blog"><i class="fa "></i>
                                首页</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/blog/categories/前端/"><i class="fa "></i>
                                前端</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/blog/categories/后端/"><i class="fa "></i>
                                后端</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/blog/categories/工具/"><i class="fa "></i>
                                工具</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/blog/archives/"><i class="fa "></i>
                                时间轴</a>
                        </li>
                        
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>
    <section class="content-wrap">
        <div class="container">
            <div class="row">
                <main class="col-md-8 main-content m-post">
                    <p id="process"></p>
<article class="post">
    <div class="post-head">
        <h1 id="利用Mock.js模拟数据接口">
            
            利用Mock.js模拟数据接口
            
        </h1>
        <div class="post-meta">
    
    <span class="categories-meta fa-wrap">
        <i class="fa fa-folder-open-o"></i>
        <a class="category-link" href="/blog/categories/后端/">后端</a> <a class="category-link" href="/blog/categories/后端/nodeJS/">nodeJS</a>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            <a class="tag-link" href="/blog/tags/Mock-js/">Mock.js</a> <a class="tag-link" href="/blog/tags/接口/">接口</a>
            
        </span>
    </span>
    
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta">
            2019/09/21</span>
    </span>
    
    
</div>
        
        
    </div>
    
    <div class="post-body post-content">
        <h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><p>使用npm安装：<code>$ npm install mockjs</code><br>或直接script标签引入：<code>&lt;script src=&quot;http://mockjs.com/dist/mock.js&quot;&gt;&lt;/script&gt;</code></p>
<h2 id="1-前端直接使用"><a href="#1-前端直接使用" class="headerlink" title="1.前端直接使用"></a>1.前端直接使用</h2><h3 id="get请求"><a href="#get请求" class="headerlink" title="get请求"></a>get请求</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// Mock.js响应模板</span></span><br><span class="line"><span class="keyword">var</span> obj = &#123;<span class="string">'aa'</span>:<span class="string">'11'</span>, <span class="string">'bb'</span>:<span class="string">'22'</span>, <span class="string">'cc'</span>:<span class="string">'33'</span>, <span class="string">'dd'</span>:<span class="string">'44'</span>&#125;;</span><br><span class="line"></span><br><span class="line">Mock.mock(<span class="string">'http://test.com'</span>, &#123;</span><br><span class="line">    <span class="string">"user|1-3"</span>: [&#123;   <span class="comment">// 随机生成1到3个数组元素</span></span><br><span class="line">        <span class="string">'name'</span>: <span class="string">'@cname'</span>,  <span class="comment">// 中文名称</span></span><br><span class="line">        <span class="string">'id|+1'</span>: <span class="number">88</span>,    <span class="comment">// 属性值自动加 1，初始值为88</span></span><br><span class="line">        <span class="string">'age|18-28'</span>: <span class="number">0</span>,   <span class="comment">// 18至28以内随机整数, 0只是用来确定类型</span></span><br><span class="line">        <span class="string">'birthday'</span>: <span class="string">'@date("yyyy-MM-dd")'</span>,  <span class="comment">// 日期</span></span><br><span class="line">        <span class="string">'city'</span>: <span class="string">'@city(true)'</span>,   <span class="comment">// 中国城市</span></span><br><span class="line">        <span class="string">'color'</span>: <span class="string">'@color'</span>,  <span class="comment">// 16进制颜色</span></span><br><span class="line">        <span class="string">'isMale|1'</span>: <span class="literal">true</span>,  <span class="comment">// 布尔值</span></span><br><span class="line">        <span class="string">'isFat|1-2'</span>: <span class="literal">true</span>,  <span class="comment">// true的概率是1/3</span></span><br><span class="line">        <span class="string">'fromObj|2'</span>: obj,  <span class="comment">// 从obj对象中随机获取2个属性</span></span><br><span class="line">        <span class="string">'fromObj2|1-3'</span>: obj,  <span class="comment">// 从obj对象中随机获取1至3个属性</span></span><br><span class="line">        <span class="string">'brother|1'</span>: [<span class="string">'jack'</span>, <span class="string">'jim'</span>], <span class="comment">// 随机选取 1 个元素</span></span><br><span class="line">        <span class="string">'sister|+1'</span>: [<span class="string">'jack'</span>, <span class="string">'jim'</span>, <span class="string">'lily'</span>], <span class="comment">// array中顺序选取元素作为结果</span></span><br><span class="line">        <span class="string">'friends|2'</span>: [<span class="string">'jack'</span>, <span class="string">'jim'</span>] <span class="comment">// 重复2次属性值生成一个新数组</span></span><br><span class="line">    &#125;,&#123;</span><br><span class="line">        <span class="string">'gf'</span>: <span class="string">'@cname'</span></span><br><span class="line">    &#125;]</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line"><span class="comment">// 发起get请求</span></span><br><span class="line">$.ajax(&#123;</span><br><span class="line">    url: <span class="string">'http://test.com'</span>,</span><br><span class="line">    type: <span class="string">'get'</span>,</span><br><span class="line">    dataType: <span class="string">'json'</span></span><br><span class="line">&#125;).done(<span class="function"><span class="keyword">function</span>(<span class="params">data, status, xhr</span>) </span>&#123;</span><br><span class="line">    <span class="built_in">console</span>.log(<span class="built_in">JSON</span>.stringify(data, <span class="literal">null</span>, <span class="number">4</span>));</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure>

<p>返回结果：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">    <span class="string">"user"</span>: [</span><br><span class="line">        &#123;</span><br><span class="line">            <span class="string">"name"</span>: <span class="string">"董静"</span>,</span><br><span class="line">            <span class="string">"id"</span>: <span class="number">88</span>,</span><br><span class="line">            <span class="string">"age"</span>: <span class="number">25</span>,</span><br><span class="line">            <span class="string">"birthday"</span>: <span class="string">"2015-04-01"</span>,</span><br><span class="line">            <span class="string">"city"</span>: <span class="string">"湖南省 怀化市"</span>,</span><br><span class="line">            <span class="string">"color"</span>: <span class="string">"#c0f279"</span>,</span><br><span class="line">            <span class="string">"isMale"</span>: <span class="literal">false</span>,</span><br><span class="line">            <span class="string">"isFat"</span>: <span class="literal">false</span>,</span><br><span class="line">            <span class="string">"fromObj"</span>: &#123;</span><br><span class="line">                <span class="string">"dd"</span>: <span class="string">"44"</span>,</span><br><span class="line">                <span class="string">"aa"</span>: <span class="string">"11"</span></span><br><span class="line">            &#125;,</span><br><span class="line">            <span class="string">"fromObj2"</span>: &#123;</span><br><span class="line">                <span class="string">"bb"</span>: <span class="string">"22"</span>,</span><br><span class="line">                <span class="string">"cc"</span>: <span class="string">"33"</span></span><br><span class="line">            &#125;,</span><br><span class="line">            <span class="string">"brother"</span>: <span class="string">"jack"</span>,</span><br><span class="line">            <span class="string">"sister"</span>: <span class="string">"jack"</span>,</span><br><span class="line">            <span class="string">"friends"</span>: [</span><br><span class="line">                <span class="string">"jack"</span>,</span><br><span class="line">                <span class="string">"jim"</span>,</span><br><span class="line">                <span class="string">"jack"</span>,</span><br><span class="line">                <span class="string">"jim"</span></span><br><span class="line">            ]</span><br><span class="line">        &#125;,</span><br><span class="line">        &#123;</span><br><span class="line">            <span class="string">"gf"</span>: <span class="string">"田杰"</span></span><br><span class="line">        &#125;</span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="post请求"><a href="#post请求" class="headerlink" title="post请求"></a>post请求</h3><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// Mock.js响应模板</span></span><br><span class="line">Mock.mock(<span class="string">'http://test.com'</span>, <span class="function"><span class="keyword">function</span>(<span class="params">options</span>) </span>&#123;</span><br><span class="line">    <span class="built_in">console</span>.log(options);</span><br><span class="line">    <span class="keyword">return</span> Mock.mock(&#123;</span><br><span class="line">        <span class="string">"user|1-3"</span>: [&#123;</span><br><span class="line">            <span class="string">'name'</span>: <span class="string">'@cname'</span>,</span><br><span class="line">            <span class="string">'id|+1'</span>: <span class="number">88</span></span><br><span class="line">        &#125;</span><br><span class="line">      ]</span><br><span class="line">    &#125;);</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line"><span class="comment">// 发起post请求</span></span><br><span class="line">$.ajax(&#123;</span><br><span class="line">    url: <span class="string">'http://test.com'</span>,</span><br><span class="line">    type: <span class="string">'post'</span>,</span><br><span class="line">    dataType: <span class="string">'json'</span>,</span><br><span class="line">    data: &#123;</span><br><span class="line">      account: <span class="number">888</span>,</span><br><span class="line">      pwd: <span class="string">'abc123'</span></span><br><span class="line">    &#125;</span><br><span class="line">&#125;).done(<span class="function"><span class="keyword">function</span>(<span class="params">data, status, xhr</span>) </span>&#123;</span><br><span class="line">    <span class="built_in">console</span>.log(<span class="built_in">JSON</span>.stringify(data, <span class="literal">null</span>, <span class="number">4</span>));</span><br><span class="line">&#125;);</span><br></pre></td></tr></table></figure>

<p>返回结果：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">&#123;<span class="attr">url</span>: <span class="string">"http://test.com"</span>, <span class="attr">type</span>: <span class="string">"POST"</span>, <span class="attr">body</span>: <span class="string">"account=888&amp;pwd=abc123"</span>&#125;</span><br><span class="line"> </span><br><span class="line">&#123;</span><br><span class="line">    <span class="string">"user"</span>: [</span><br><span class="line">        &#123;</span><br><span class="line">            <span class="string">"name"</span>: <span class="string">"曾明"</span>,</span><br><span class="line">            <span class="string">"id"</span>: <span class="number">88</span></span><br><span class="line">        &#125;</span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h2 id="2-后端node模拟假数据接口"><a href="#2-后端node模拟假数据接口" class="headerlink" title="2.后端node模拟假数据接口"></a>2.后端node模拟假数据接口</h2><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> express = <span class="built_in">require</span>(<span class="string">'express'</span>);   <span class="comment">//引入express</span></span><br><span class="line"><span class="keyword">let</span> Mock = <span class="built_in">require</span>(<span class="string">'mockjs'</span>);       <span class="comment">//引入mock</span></span><br><span class="line"><span class="keyword">let</span> app = express();        <span class="comment">//实例化express</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">let</span> strlist = [<span class="string">"随机标题a"</span>,<span class="string">"随机标题b"</span>,<span class="string">"随机标题c"</span>]</span><br><span class="line"><span class="keyword">let</span> imgurl = [<span class="string">"assets/a.jpg"</span>, <span class="string">"assets/b.jpg"</span>, <span class="string">"assets/c.jpg"</span>, <span class="string">"assets/d.jpg"</span>, <span class="string">"assets/e.jpg"</span>]</span><br><span class="line"></span><br><span class="line"><span class="comment">/*为app添加中间件处理跨域请求,需放在前面*/</span></span><br><span class="line">app.use(<span class="function"><span class="keyword">function</span>(<span class="params">req, res, next</span>) </span>&#123;</span><br><span class="line">  res.header(<span class="string">"Access-Control-Allow-Origin"</span>, <span class="string">"*"</span>);</span><br><span class="line">  res.header(<span class="string">'Access-Control-Allow-Methods'</span>, <span class="string">'PUT, GET, POST, DELETE, OPTIONS'</span>);</span><br><span class="line">  res.header(<span class="string">"Access-Control-Allow-Headers"</span>, <span class="string">"X-Requested-With"</span>);</span><br><span class="line">  res.header(<span class="string">'Access-Control-Allow-Headers'</span>, <span class="string">'Content-Type'</span>);</span><br><span class="line">  next();</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line">app.use(<span class="string">'/test'</span>, <span class="function"><span class="keyword">function</span> (<span class="params">req, res</span>) </span>&#123;</span><br><span class="line">  res.json(Mock.mock(&#123;</span><br><span class="line">    <span class="string">'status'</span>: <span class="number">200</span>,</span><br><span class="line">    <span class="string">"list|10"</span>: [&#123;</span><br><span class="line">      <span class="string">'title|1'</span>: strlist,</span><br><span class="line">      <span class="string">'id|+1'</span>: <span class="number">0</span>,</span><br><span class="line">      <span class="string">'new|20-60'</span>: <span class="number">0</span>,</span><br><span class="line">      <span class="string">'old|20-60'</span>: <span class="number">0</span>,</span><br><span class="line">      <span class="string">'imgurl|+1'</span>: imgurl</span><br><span class="line">    &#125;]</span><br><span class="line">  &#125;))</span><br><span class="line">  </span><br><span class="line">&#125;)</span><br><span class="line"></span><br><span class="line">app.listen(<span class="string">'8090'</span>, () =&gt; &#123;</span><br><span class="line">  <span class="built_in">console</span>.log(<span class="string">'监听端口 8090'</span>)</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>

<p>参考链接：<a href="https://blog.csdn.net/zhanglir333/article/details/78721585" target="_blank" rel="noopener">https://blog.csdn.net/zhanglir333/article/details/78721585</a></p>

    </div>
    
    <div class="post-footer">
        <div>
            
            转载声明：
            商业转载请联系作者获得授权,非商业转载请注明出处 © <a href="" target="_blank">Snippet</a>
            
            
        </div>
        <div>
            
        </div>
    </div>
</article>
<div class="article-nav prev-next-wrap clearfix">
    
    <a href="/blog/2019/09/22/JavaScript的变量提升/" class="pre-post btn btn-default" title='JavaScript的变量提升'>
        <i class="fa fa-angle-left fa-fw"></i><span class="hidden-lg">上一篇</span>
        <span class="hidden-xs">
            JavaScript的变量提升</span>
    </a>
    
    
    <a href="/blog/2019/09/21/nodeJS实现get和post请求接口/" class="next-post btn btn-default" title='nodeJS实现get和post请求接口'>
        <span class="hidden-lg">下一篇</span>
        <span class="hidden-xs">
            nodeJS实现get和post请求接口</span><i class="fa fa-angle-right fa-fw"></i>
    </a>
    
</div>

                </main>
                
                    <aside id="article-toc" role="navigation" class="col-md-4">
    <div class="widget">
        <h3 class="title">
            文章目录
        </h3>
        
        <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#安装"><span class="toc-text">安装</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#1-前端直接使用"><span class="toc-text">1.前端直接使用</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#get请求"><span class="toc-text">get请求</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#post请求"><span class="toc-text">post请求</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2-后端node模拟假数据接口"><span class="toc-text">2.后端node模拟假数据接口</span></a></li></ol>
        
    </div>
</aside>
                
            </div>
        </div>
    </section>
    <footer class="main-footer">
    <div class="container">
        <div class="row">
        </div>
    </div>
</footer>
<a id="back-to-top" class="icon-btn hide">
    <i class="fa fa-chevron-up"></i>
</a>
    <div class="copyright">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="busuanzi">
    
</div>
            </div>
            <div class="col-sm-12">
                <span>Copyright &copy;
                    2017
                </span> |
                <span>
                    Powered by <a href="//hexo.io" class="copyright-links" target="_blank" rel="nofollow">Hexo</a>
                </span> |
                <span>
                    Theme by <a href="//github.com/shenliyang/hexo-theme-snippet.git" class="copyright-links" target="_blank" rel="nofollow">Snippet</a>
                </span>
            </div>
        </div>
    </div>
</div>



<script src="/blog/js/app.js?rev=@@hash"></script>
</body>
</html>